package qeb.handheldmedical.exam;

import qeb.handheldmedical.R;
import qeb.handheldmedical.dialog.MultiDialog;
import qeb.handheldmedical.model.User;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * @author 作者(dugaoyi) E-mail:dugaoyi@163.com
 * @version 创建时间：2016年8月31日 下午9:26:22
 * @declaration 读取学习文档
 */
public class StudyItem extends Activity {
	User usr = new User();
	private String examID, examTitle;
	Button btn_title_back, btn_title_right;
	private MultiDialog mDialog;
	private TextView tv_top_title;

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		usr = (User) getIntent().getSerializableExtra("userinfo");
		examID = (String) getIntent().getSerializableExtra("examID");
		examTitle = (String) getIntent().getSerializableExtra("examTitle");
		setContentView(R.layout.exam_study_item);
		tv_top_title = (TextView) findViewById(R.id.tv_top_title);
		tv_top_title.setText(examTitle);
		btn_title_back = (Button) findViewById(R.id.btn_title_back);
		btn_title_back.setOnClickListener(MyOnClickListener);

		btn_title_right = (Button) findViewById(R.id.btn_title_right);
		btn_title_right.setOnClickListener(MyOnClickListener);

	}

	private OnClickListener MyOnClickListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch (v.getId()) {
			case R.id.btn_title_back:// 返回按钮
				StudyItem.this.finish();
				break;
			}
		}
	};
}
